@import '~@/assets/style/unit/color.scss';

// 工具类名统一前缀
$prefix: dd;

// 禁止用户选中 鼠标变为手形
%unable-select {
  user-select: none;
  cursor: pointer;
}

// 填满父元素
// 组要父元素 position: relative | absolute;
%full {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}

// flex 垂直水平居中
%flex-center-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

%flex-center-col {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

// 将元素模拟成卡片外观
%card {
  border: 1px solid #dddee1;
  border-color: #e9eaec;
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
  position: relative;
}

// 数据表格边距
.data-table-side-by-side-box {
  position: relative;
  height: 100%;
  top: 0;
  background: white;
  padding: 2rem;
}

// 分页插件
.dd-crud-footer {
  position: relative;
  right: 0;
  text-align: right;
}

// element-ui的分页样式
.custom-el-pagination-style {
  text-align: right;
}

// 自定义消息通知层级
.custom-file-import-tip {
  z-index: 12008 !important;
}

// 修改el-dialog头部样式
.import-file-fail-style {
  .el-dialog__header {
    background-color: #304369 !important;
  }

  .el-dialog__footer {
    text-align: right !important;
  }
}

// 主要按钮背景色
.el-button--primary {
  background: #719DF5 !important;
  border-radius: 3px !important;
}

.el-tooltip__popper {
  font-size: 10px !important;
  .popper__arrow{
    
  }
}

.el-tabs .el-tabs--top {
  background-color: white !important;

  .el-tabs__nav .is-top {
    width: 100% !important;

    .el-tabs__active-bar {
      width: 50% !important;
    }

    #tab-first {
      width: 50%;
      text-align: center;
    }
  }
}
